21. sum instruction

你好。
Hello.

在本教程中,我们将使用一些指令,这就是数据处理指令。
In this tutorial, we will work with the some instruction, and this is the data processing instruction.

一些指令的作用是什么?
And what is the some instructions do?

首先,我们有一个数据寄存器节拍,我将如何进入计算器,我将首先去找程序员,在这里我将向您展示。
Firstly, we have a beats into data register how I will go to calculator and I will go to a programmer firstly and here I will show it to you.

让我看看,好吗?
Just let me see it, OK?

这是第一个半字节完成的结果。
This is for bit one nibble done.

8 位等于 1 口,2 口等于 2,直到 15。
Eight bit is one bite and two bite equals two until 15.

这是15,从零开始。
This is 15, starting from zero.

这是一言以蔽之。
This is of one word.

好的。
OK.

这些都是节拍。
And these are all beats.

想象一下您正在处理大量脉搏输入。
And imagine you are working with a lot of input of your pulse.

例如,有 10 个不同的传感器连接到您的脉搏,您想查看有多少个传感器处于打开状态以及有多少个传感器处于关闭状态。
For example, 10 different sensor is connected to your pulse, and you want to see how many sensor is on and how many ease off.

此时我们可以按照相同的说明进行操作。
We can work with the same instructions at this moment.

一些指令的作用是,例如,一些指令检测一个单词中有多少个节拍被激活。
What some instructions do, some instructions is detect how many one beat is activated into one word, for example.

这是我的工作。
This is my work.

如果这个字数据例如是四千七百五十四并且在那一刻这很奇怪,那么一二三四五被激活。
And if the this word data is, for example, four thousand seven hundred fifty four and this bizarre on that moment, then one two three four five is activated.

让我们测试一下。
And let's test it.

好的,这就是我们要说的总和,我只听数据。
OK, and here the sum what we are going to say, I will just hear the data.

例如,轮流使用零,结果写入 12,我们将在 12 中看到多少位,10 是我的源数据。
For example, the zero be used the turn and the result is written into the 12 and how many bits on we will see in the 12 and the 10 is my source data.

我将转换我的项目,让我们重建一切,然后我将再次启动模拟器。
I will convert my project and let's rebuild all OK and I will start a simulator again.

但有一点不对劲。
But there is something wrong.

好的,我在这里解决了问题。
OK, I solved the problem here.

我们需要建立大约一千个联系人,我将重建我的项目。
We need to put a contact like some a thousand and I will rebuild my project.

好的,现在让我们再次启动模拟器。
OK, now let's start the simulator again.

这是写给中华人民共和国的。
Which is writing to the PRC.

首先,我们会看到零和零,然后我将更改为注册的十个,例如这里的四千七百五十四。
Then first, we will see zero and zero, and I will change to the ten that are registered to, for example, here four thousand seven hundred and fifty four.

在这里,我就这样说一下。
Here, I will say like that.

好的,然后突然你会看到五个,它被激活了,好吗?
OK, then suddenly you will see five, it is activated, OK?

如果我激活这个,你会看到一、二、三、四和五。
You will see one, two, three, four and five if I activate this one.

那么数据将是四千七百五十五,第一个音高被激活看到三个,例如,三个传感器检测到这样。
Then the data will be four thousand seven hundred fifty five and the first pitch is activated saw three, for example, three sensors detected like that.

你可以认为这样就可以了。
You can think it's OK.

抱歉,有六个传感器,好吧,您可以看到六个,它在 10 中处于活动状态。
And sorry, six sensor, OK, you can see six, which is active in the 10.

例如,我们去激活这个,随机看到三个四、五、六、七和八位是激活的。
For example, let's go to activate this one and randomly saw three four, five, six, seven and eight bit is active.

所以三十九点好,我就写到这里。
So thirty nine point OK, I will write it to here.

但这是因为比更大。
But this is because of the bigger than.

三万二千七百六十七,因为我将去这里完成的一个地方和两个乘以 16 的指数。
Thirty two thousand seven hundred sixty seven, because I will go to one place done here and two exponential by 16.

对此感到抱歉。
Sorry for that.

这是我的数据最大值,但由于有符号的减号和加号除以二。
And this is my data maximum, but because of the signed minus and plus divided by two.

而一字可得此一。
And one word can get this one.

所以也许改成这样更好,比如我们再去编程吧。
So maybe it is better to change it to, for example, let's go to programming again and.

像那样?
Like that?

好的。
OK.

比四、六、九数据多一的现在被激活。
One more than four and six and nine data is activated now and.

您将看到结果返回到 12 号晚上。
You will see the result is returning to the 12th as night.

好的。
OK.

这是相同的指令。
This is the same instruction working.

这向我们展示了一个单词中有多少节拍。
This is shows us how many beat is all in one word.

就这样。
That's all.

或者我们可以与双重工作一起工作,我们将看到双重工作。
Or we can work with the double some and that we will see double work.

如何?
How?

一个字,这些字也是32位的。
One word and these words also 32 bit.

好的,从这里到这里,它正在检测有多少个音高激活了盐加倍一些或一些。
OK, from here to here it is detecting how many pitches activate that salt double some or some.

它是由你决定。
It is up to you.

我现在工作了。
I'm work now.

就差一天上班了。
Just one day to work.

但我们可以进行双重工作,我们可以检测有多少传感器检测到它。
But we can work with the double work and we can detect how many sensors detect it.

据此,我们可以说,好吧,这是一个算法,我们可以继续编写策略程序,或者我们可以轻松地使用它。
And according to that, we can say, OK, this is an algorithm and we can continue to write the policy program or we can use it easily.

但对于本教程,我已经完成了。
But for this tutorial, I'm finished here.

我们下一个故事见。
See you in the next story.